package com.constant;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@SuppressWarnings("serial")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class RequestRes implements Serializable{
	
	private String msg; // 响应消息
	
	private Integer status; // 响应状态
	
	private Object datas;
	
	public static RequestRes ReSuccess(Object datas){
		return new RequestRes("success", 200, datas);
	}
	
	public static RequestRes ReError(){
		return new RequestRes("error", 400, null);
	}
	
}
